/*
 * The system call handler for syscalls in  IA-32 platform.
 */
#ifndef IA32SYSCALLHANDLER_H
#define IA32SYSCALLHANDLER_H

#include "crossbit/SyscallHandler.h"

namespace crossbit {

    class IA32ProcessorState;
    class ELFMemoryImage; 

    class IA32SyscallHandler : public SyscallHandler
    {
        public:
            IA32SyscallHandler(IA32ProcessorState *state, ELFMemoryImage *img)
                : SyscallHandler(state, img)
                {}

            virtual ~SyscallHandler() {}
            virtual void operator () ();

        private:
            void brk();
            void mmap();
    }

}

#endif
